package com.cdu.model.query;

import com.cdu.model.common.BasePage;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * projectName : easy-help-v2
 *
 * @author :lql
 * date: 2022 -05 -16
 */
@Data
@ApiModel(value = "任务查询", description = "查询参数")
public class TaskQuery extends BasePage {
    @ApiModelProperty("任务id")
    private String id;

    @ApiModelProperty("用户id-发布")
    private String uidCreate;
    @ApiModelProperty("用户id-Accept")
    private String uidAccept;

    @ApiModelProperty("任务名称")
    private String name;

    @ApiModelProperty("任务状态")
    private Integer isUrgent;

    @ApiModelProperty("任务开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date creatTime;

    @ApiModelProperty("任务结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date endTime;

    private Integer isDeal;
}
